<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>login</title>
</head>
<body>
    <h1>用户登录</h1>
    <form method="post" th:action="@{/doLogin}">
        用户名: <input name="username" type="text">
        密码: <input name="password" type="password">
        验证码: <input name="kaptcha" type="text">
        <img alt="" th:src="@{/vc.jpg}"><br>
        记住我: <input type="checkbox" name="remember-me" value="on"/><br>
        <button type="submit">登录</button>
    </form>
    <div th:text="${SPRING_SECURITY_LAST_EXCEPTION}"></div>
</body>
</html>